package com.seaboxdata.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seaboxdata.dao.ShareTableInfoDao;
import com.seaboxdata.entity.ShareTableInfo;
import com.seaboxdata.service.ShareTableInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author
 * @create 2021-02-19 11:08
 **/
@Service("shareTableInfoService")
public class ShareTableInfoServiceImpl extends ServiceImpl<ShareTableInfoDao,ShareTableInfo> implements ShareTableInfoService {

    @Autowired
    private ShareTableInfoDao shareTableInfoDao;

    @Override
    public int getTotalDepartment(Date date) {
        return shareTableInfoDao.getTotalDepartment(date);
    }

    @Override
    public long getAllShareTableTotalCount(Date date) {
        return shareTableInfoDao.getAllShareTableTotalCount(date);
    }

    @Override
    public long getShareTableCount() {
        return shareTableInfoDao.getShareTableCount();
    }

    @Override
    public long getShareSystemCount() {
        return shareTableInfoDao.getShareSystemCount();
    }
}
